#pragma once

#include "G721Codec.h"
#include "G711Codec.h"
#include "ImaAdpcm.h"

#include "TG_DecSDK.h"

class TGAudioDecMan
{
public:
	TGAudioDecMan(void);
	~TGAudioDecMan(void);

public:
	int Decode(BYTE* pEncFrame,long lEncSize,TG_AUDIO_DEC_INFO *pOutDecInfo);


public:
	int Encode(TG_AUDIO_DEC_INFO *pInPcmInfo,unsigned long lTimeStamp,BYTE** ppOutEncFrame,long *lpOutEncSize);

private:
	G721Codec m_xG72xCodec;
	G711Codec m_xG711Codec;
	ImaAdpcm  m_xImaAdpcm;

private:
	BYTE  m_OutBuf[20*1024];

}; 
